﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Bocom.ICenter.UI.Silverlight.Models
{

    /// <summary>
    /// 站点实体类   ---StationInitEntity 
    /// </summary>
    public class ClassStationEntity
    {


        /// <summary>
        /// 站序号
        /// </summary>
        /// <param name="stationIndex"></param>
        public ClassStationEntity(int stationIndex)
        {
            this._stationIndex = stationIndex;
        }

        private long _ubiRouteId;
        /// <summary>
        /// 线路流水号  索引ID  如 5
        /// </summary>
        public long ubiRouteId
        {
            get { return _ubiRouteId; }
            set { _ubiRouteId = value; }
        }
      
        private string _routeID;
        /// <summary>
        /// 站点所在的线路ID  如： 0123B
        /// </summary>
        public string RouteID
        {
            get
            {
                return this._routeID;
            }
            set
            {
                this._routeID = value;
            }
        }


        private long _ubiStationId;
        /// <summary>
        /// 站点流水号  索引ID  如 5
        /// </summary>
        public long ubiStationId
        {
            get { return _ubiStationId; }
            set { _ubiStationId = value; }
        }
       

        /// <summary>
        /// 站名
        /// </summary>
        private string _stationName = string.Empty;

        /// <summary>
        /// 站间距离     
        /// </summary>
        private double _distance;

        private int _stationIndex;
        /// <summary>
        /// 站序号
        /// </summary>
        public int StationIndex
        {
            get
            {
                return this._stationIndex;
            }
            set
            {
                this._stationIndex = value;
            }
        }

        /// <summary>
        /// 站名
        /// </summary>
        public string StationName
        {
            get
            {
                return this._stationName;
            }
            set
            {
                this._stationName = value;
            }
        }

        /// <summary>
        /// 站间距离      
        /// </summary>
        public double Distance
        {
            get
            {
                return this._distance;
            }
            set
            {
                this._distance = value;
            }
        }       

        /// <summary>
        /// 看看当前站点的属性
        /// </summary>
        /// 
        private StationStatus _stationStatus = StationStatus.St_Null;
        /// <summary>
        /// 站点状态
        /// </summary>
        public StationStatus stationStatus
        {
            get { return _stationStatus; }
            set {
                _stationStatus = value;

                #region 方向
                switch (_stationStatus)
                {
                    case StationStatus.St_StTop:
                    case StationStatus.St_Top:
                    case StationStatus.St_EndTop:
                        direction = 1;
                        break;
                    case StationStatus.St_StBottom:
                    case StationStatus.St_Bottom:
                    case StationStatus.St_EndBottom:
                        direction = 2;
                        break;
                    default:
                        direction = 3;
                        break;

                }
                #endregion
             
            }
        }


        private int direction = 1;

        /// <summary>
        /// 站点方向： 1 上行，2 下行，3 不在线上
        /// </summary>
        public int Direction
        {
            get
            {
                return direction;
            }
            set
            {
                direction = value;            
            }

        }



    }
}
